<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>学生成绩管理系统</title>
<link rel="stylesheet" type="text/css" id="css" href="../style/main.css" />
<link rel="stylesheet" type="text/css" id="css"
	href="../style/style1.css" />
<link rel="stylesheet" type="text/css" id="css"
	href="../style/style.css" />

<style type="text/css">
<!--
table {
	border-spacing: 1px;
	border: 1px solid #A2C0DA;
}

td, th {
	padding: 2px 5px;
	border-collapse: collapse;
	text-align: left;
	font-weight: normal;
}

thead tr th {
	height: 50px;
	background: #B0D1FC;
	border: 1px solid white;
}

thead tr th.line1 {
	background: #D3E5FD;
}

thead tr th.line4 {
	background: #C6C6C6;
}

tbody tr td {
	height: 35px;
	background: #CBE2FB;
	border: 1px solid white;
	vertical-align: middle;
}

tbody tr td.line4 {
	background: #D5D6D8;
}

tbody tr th {
	height: 35px;
	background: #DFEDFF;
	border: 1px solid white;
	vertical-align: middle;
}

tfoot tr td {
	height: 35px;
	background: #FFFFFF;
	border: 1px solid white;
	vertical-align: middle;
}
-->
</style>

<script src="js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../js/calendar.js"></script>
<script type="text/JavaScript">
	/*判断是否为数字*/
	function isNumber(str) {
		var Letters = "1234567890";
		for (var i = 0; i < str.length; i = i + 1) {
			var CheckChar = str.charAt(i);
			if (Letters.indexOf(CheckChar) == -1) {
				return false;
			}
		}
		return true;
	}
	/*判断是否为Email*/
	function isEmail(str) {
		var myReg = /^[-_A-Za-z0-9]+@([_A-Za-z0-9]+\.)+[A-Za-z0-9]{2,3}$/;
		if (myReg.test(str)) {
			return true;
		}
		return false;
	}
	/*判断是否为空*/
	function isEmpty(value) {
		return /^\s*$/.test(value);
	}
	function check() {
		if (isEmpty(document.myForm.studentName.value)) {
			alert("学生姓名不能为空！");
			document.myForm.studentName.focus();
			return false;
		}
		if (isEmpty(document.myForm.password.value)) {
			alert("密码不能为空！");
			document.myForm.password.focus();
			return false;
		}
		if (isEmpty(document.myForm.studentClass.value)) {
			alert("学生班级不能为空！");
			document.myForm.studentClass.focus();
			return false;
		}if (isEmpty(document.myForm.studentMajor.value)) {
			alert("学生班级不能为空！");
			document.myForm.studentMajor.focus();
			return false;
		}
		return true;
	}
</script>
</head>
<body>
	<div id="btm">
		<div id="main">

			<div id="header">
				<div id="top"></div>
				<div id="logo">
					<h1>学生管理</h1>
				</div>
				<div id="mainnav">
					<ul>
						<li><a href="../admin/adminIndex.jsp">首页</a></li>
						<li><a href="listAllStudentServlet">学生管理</a></li>
						<li><a href="listAllTeacherServlet">教师管理</a></li>
						<li><a href="listAllCourseServlet">课程管理</a></li>
						<li><a href="dealWithScore.jsp">成绩处理</a></li><li><a href="../logoutServlet">退出登录</a></li>
					</ul>
					<span> </span>
				</div>
			</div>
			<div id="content" align="center">
				<div id="center">
					<BR /> <BR />
					<form action="updateStudentServlet" method="post" name="myForm">
						<table width="800" align="center" cellpadding="0" cellspacing="0">
							<thead>
								<tr>
									<td width="70%"><h5>
											学生管理-->学生信息查看/修改&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
												href="listAllStudentServlet">&nbsp;&nbsp;&nbsp;返回</a>
										</h5></td>
								</tr>
							</thead>

							<tr>
								<td colspan="2" width="100%">
									<table width="100%">
										<tbody>
											<tr>
												<td align="right">学生信息</td>
												<td>注：带<font color="red"> * </font>号的必须填写
												</td>
											</tr>
											<tr>
												<td align="right">学号:</td>
												<td><input disabled="disabled" name="studentNo"
													value="${requestScope.student.studentNo }" /><font
													color="red"> * </font></td>
											</tr>
											<tr>
												<td align="right">姓名:</td>
												<td><input id="studentName" name="studentName"
													value="${requestScope.student.studentName }" /><font
													color="red"> * </font></td>
											</tr>
											<tr>
												<td align="right">密码:</td>
												<td><input id="password" type="password"
													name="password" value="${requestScope.student.password }" /><font
													color="red"> * </font></td>
											</tr>
											<tr>
												<td align="right">班级:</td>
												<td><input id="studentClass" name="studentClass"
													value="${requestScope.student.studentClass }" /><font
													color="red"> * </font></td>
											</tr>
											<tr>
												<td align="right">专业:</td>
												<td><input id="studentMajor" name="studentMajor"
													value="${requestScope.student.studentMajor }"/><font
													color="red"> * </font></td>
											</tr>
											<tr>
												<td align="right">总学分:</td>
												<td><input id="sumCredit" name="sumCredit"
													value="${requestScope.student.sumCredit }"/></td>
											</tr><tr>
												<td align="right">总绩点:</td>
												<td><input id=""sumCreditGPA"" name="sumCreditGPA"
													value="${requestScope.student.sumCreditGPA }"/></td>
											</tr><tr>
												<td align="right">平均绩点:</td>
												<td><input id="avgCreditGPA" name="avgCreditGPA"
													value="${requestScope.student.avgCreditGPA }" /></td>
											</tr><tr>
												<td align="right">班级排名:</td>
												<td><input id="classRank" name="classRank"
													value="${requestScope.student.classRank }" /></td>
											</tr><tr>
												<td align="right">专业排名:</td>
												<td><input id="majorRank" name="majorRank"
													value="${requestScope.student.majorRank }" /></td>
											</tr>

										</tbody>
										<tr>
											<td align="center" colspan="2"><input type="hidden"
												name="studentNo" value=${requestScope.student.studentNo }
												style="width:0;height:0" /> <input type="submit" value="提交"
												onclick="return check();" /> <input type="reset" value="重置" />
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>

					</form>



				</div>



			</div>

			<div id="footer">
				<div id="copyright">
					<div id="copy">
						<p>CopyRight&copy;2016</p>
						<p>南京晓庄学院信息工程学院</p>
					</div>
				</div>
				<div id="bgbottom"></div>
			</div>

		</div>
	</div>
</body>
</html>
